<template>
<div class="block" id="app">
  <span class="demonstration">页面打分</span>
  <el-rate v-model="value" show-text onchange="function getRate(value) {

  }">
  </el-rate>
</div>
</template>
<script>
  export default {
    name: 'Rate',
    data() {
      return {
        value: 5,
      }
    },
    getRate:function (value) {
      alert(value)
    }
  }
</script>
